<template>
  <div id="app" v-cloak>
    <transition name="fade" mode="out-in">
      <router-view id="main" class="view"></router-view>
    </transition>
  </div>
</template>
<script>
import entryStore from '@/store/entry_store'
export default {
  name: 'app',
  // 子组件
  components: { },
  // 数据
  data() {
    return {
      isShowLoginDialog: false, //是否显示登录弹窗
      profession_id: '',
      isShowNewDialog: false, //是否显示新用户弹窗
      isNewUserPage: false,
      isShowApiLimitDialog: false // 显示接口频率限制弹窗
    }
  },

  // 计算属性
  computed: {},
  beforeMount() {
    entryStore.loadModule(this.$store, ['user'])
  },
  mounted() {
    this.storage.init()
  }
}
</script>
<style>
/* 图片懒加载 样式优化 */
img[lazy='loading'],
img[lazy='error'] {
  background: #f2f2f2;
  object-fit: contain;
}
</style>
